.customer-detail-container {
  padding: 20px;
  min-height: calc(100vh - 140px);
}

.customer-detail-card {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05) !important;
  border-radius: 8px !important;
  margin-bottom: 20px;
}

.customer-detail-content {
  padding: 0 10px;
}

.info-section {
  margin-bottom: 30px;
  position: relative;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 8px;
  color: #333;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #409eff;
}

.info-descriptions {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
}

.customer-detail-tabs {
  margin-top: 20px;
}

.tab-content {
  padding: 20px 0;
}

.tab-toolbar {
  margin-bottom: 15px;
  display: flex;
  justify-content: flex-end;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
}

.drawer-content {
  height: 100%;
  overflow-y: auto;
  padding: 10px 20px;
}

.drawer-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #ebeef5;
  gap: 12px;
}

/* 自定义表格样式 */
.custom-table {
  --el-table-border-color: #ebeef5;
  --el-table-header-bg-color: #f5f7fa;
  --el-table-row-hover-bg-color: #f5f7fa;
  border-radius: 6px;
  overflow: hidden;
}

/* 更轻量的描述列表样式 */
:deep(.el-descriptions__cell) {
  padding: 12px !important;
}

:deep(.el-descriptions__label) {
  width: 120px;
  font-weight: 500;
  color: #606266;
}

:deep(.el-descriptions__content) {
  word-break: break-all;
  color: #303133;
}

/* 标签样式优化 */
:deep(.el-tag) {
  border-radius: 4px;
  padding: 0 8px;
  height: 24px;
  line-height: 24px;
}

/* 联系人列表样式 */
.contact-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-icon {
  background-color: #e6f0fc;
  color: #409eff;
}

.default-tag {
  margin-left: auto;
  padding: 0 6px;
  font-size: 12px;
}

/* 空数据提示 */
.empty-data {
  padding: 40px 0;
  text-align: center;
}

/* 添加响应式样式 */
@media (max-width: 768px) {
  .customer-detail-container {
    padding: 10px;
  }

  .el-descriptions {
    width: 100%;
    overflow-x: auto;
  }

  .tab-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-toolbar .el-button {
    margin-bottom: 10px;
  }
}

/* 加载中样式 */
.loading-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #909399;
}

/* 数据错误提示 */
.data-error-tip {
  padding: 20px;
  text-align: center;
  color: #f56c6c;
  background-color: #fef0f0;
  border-radius: 4px;
  margin: 20px 0;
}

/* 子客户信息区块样式 */
.sub-customer-section {
  .el-table {
    border-radius: 6px;
    overflow: hidden;
  }

  // 子客户名称链接样式
  .el-table__body-wrapper {
    a {
      color: #409eff;
      text-decoration: none;
      transition: color 0.3s;

      &:hover {
        color: #66b1ff;
        text-decoration: underline;
      }
    }
  }

  // 空数据状态样式优化
  .el-table__empty-block {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .el-table__empty-text {
      color: #909399;
      font-size: 14px;
      margin-top: 10px;
    }
  }

  // 表头样式优化
  .el-table th {
    background-color: #f8f9fa;
    font-weight: 500;
  }

  // 行悬停效果
  .el-table--enable-row-hover .el-table__body tr:hover > td {
    background-color: #f0f9ff;
  }
}
